<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/28 0028
 * Time: 下午 12:00
 */

namespace app\sports_admin\vaildate;


class Feedback extends Base
{
    protected $rule = [
        'id'=>'require|isPositiveInteger',
    ];

    protected $message = [
        'id'=>'编号必须为整数',
    ];
    //回复验证
    public function reply()
    {
        $rule = [
            'id'=>'require|integer',
            'contents'=>'require'
        ];
        $msg = [
            'id'=>'请选择需要回复的信息',
            'contents'=>'回复内容不能为空'
        ];
        self::goCheck($rule,$msg);
    }
}
